package larrys.pomodoro.domain.entity;

import java.util.Date;

public class Round {

	private long id;
	private long userId;
	private long activityId;

	private int duration;
	private Date startTime;
	private Date endTime;
	private boolean interrupted;
	private String comment;

	private boolean finished;

	public Round(long id, long userId, long activityId, boolean finished) {
		this.id = id;
		this.userId = userId;
		this.activityId = activityId;
		this.finished = finished;
	}

	public long getId() {
		return id;
	}

	public long getUserId() {
		return userId;
	}

	public long getActivityId() {
		return activityId;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public boolean isInterrupted() {
		return interrupted;
	}

	public void setInterrupted(boolean interrupted) {
		this.interrupted = interrupted;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public boolean isFinished() {
		return finished;
	}

	@Override
	public String toString() {
		return "Round [id=" + id + ", userId=" + userId + ", activityId="
				+ activityId + ", duration=" + duration + ", startTime="
				+ startTime + ", endTime=" + endTime + ", interrupted="
				+ interrupted + ", comment=" + comment + ", finished="
				+ finished + "]";
	}

}
